﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace eLoan.Models
{
    public class CancelLoanModel
    {
        public List<CancelLoanQueryModel> CancelLoanItems { get; set; }

        [Display(Name = "Select a branch")]
        public IEnumerable<SelectListItem> Branches { get; set; }

        public string SelectedBranchCode { get; set; }

        public string SearchText { get; set; }
    }

    public class CancelLoanQueryModel
    {
        [Display(Name = "Document No")]
        public string DocumentNo { get; set; }
        
        [Display(Name = "Borrower")]
        public string BorrowerName { get; set; }

        [Display(Name = "Agent")]
        public string AgentName { get; set; }

        [Display(Name = "Loan Amount")]
        public decimal LoanAmount { get; set; }

        [Display(Name = "Loan Interest %")]
        public decimal LoanInterest { get; set; }

        [Display(Name = "Loan Interest Amount")]
        public decimal LoanInterestAmount { get; set; }

        [Display(Name = "Receivable")]
        public decimal Receivable { get; set; }

        [Display(Name = "Loan Status")]
        public string LoanStatus { get; set; }

        public bool IsSelected { get; set; }

    }
}